<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格</title>
    <link rel="stylesheet" href="../../css/bootstrap.css">
    <style>
body{
    padding:100px;
}

    </style>
</head>
<body>
<!--table 基本样式-->
<!--table-bordered 边框-->
<!--table-striped 斑马线-->
<!--table-condensed 紧凑型-->
<!--table-hover 隔行变色-->
<!--响应式  添加DIV class=table-responsive-->

<div class="table-responsive">
        <table class="table table-striped ">
            <thead>
            <tr>
                <td>姓名</td>
                <td>年龄</td>
                <td>性别</td>

            </tr>
            </thead>
            <tbody>
            <tr class="active">
                <td>张三</td>
                <td>20</td>
                <td>男</td>
            </tr>
            <tr class="success">
                <td>李四</td>
                <td>30</td>
                <td>女</td>
            </tr>

            <tr class="info">
                <td>王五</td>
                <td>40</td>
                <td>男</td>
            </tr>
            <tr class="warning">
                <td>王五</td>
                <td>40</td>
                <td>男</td>
            </tr>
            <tr class="danger">
                <td>王五</td>
                <td>40</td>
                <td>男</td>
            </tr>
            </tbody>
        </table>
</div>
</body>
</html>
